﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.InteropServices;

namespace TestWinAPI
{
    public partial class test : System.Web.UI.Page
    {
        [DllImport("dllTest.dll")]
        public static extern int add(int x, int y);


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.lblMsg.Text = add(5, 99) + "";
            }
        }


    }
}
